# -*- coding:utf-8 -*-
from models import *
from django.contrib import admin



class UsersAdmin(admin.ModelAdmin): 
    list_display = ('username','password', 'times','nickname','status')
    fieldsets = [
        ('帐号',               {'fields': ['username']}),
#        ('注册时间',      {'fields': ['times']}),
        ('昵称',           {'fields': ['nickname']}),
        ('用户状态',               {'fields': ['status']}),
    ]

class PowerAdmin(admin.ModelAdmin): 
    list_display = ('users','status')


admin.site.register(Users,UsersAdmin)
admin.site.register(Power,PowerAdmin)